<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsplib/pubhead.jsp"%>
<%@ page import="net.comm.message.service.impl.MsgcontServiceImpl" %>
<%@ page import="net.comm.common.ReturnMessage" %>
<%@ page import="net.comm.message.web.form.MsgcontForm" %>
<%@ page import="java.util.List" %>

<% 

		try {
			request.setCharacterEncoding("UTF-8"); 
			response.setCharacterEncoding("UTF-8"); 
		} catch (Exception e) {
			e.printStackTrace();
		}
		//不缓存页面
		response.setHeader("Cache-Control","no-store");
		response.setHeader("Pragrma","no-cache");
		response.setDateHeader("Expires",0);

		int msgID = Integer.valueOf(request.getParameter("msgID"));

		int ret = 0;

		StringBuffer sb = new StringBuffer(); 
		response.addHeader("Content-Type","text/html"); 
		
		if(msgID > 0){
		
			MsgcontServiceImpl service = new MsgcontServiceImpl();
			MsgcontForm theForm = new MsgcontForm();
			ReturnMessage msg  = new ReturnMessage();
					
			//查询条件
			theForm.setMsgID(msgID);

			service.get(theForm, msg);

			if(msg.getErrCode() == 0){

				sb.append(theForm.getMsg());
			}		
		}
		if(ret == 0)
		{
			//服务器返回给login.jsp的response
		}
		
//		System.out.println("s="+ sb.toString());

		response.getWriter().write(sb.toString()); 
		
 %>       
